PlatformDefaultPureeLogStore

Constructors

Link copied to clipboard
constructor(context: Context, dbName: String)

Functions

Link copied to clipboard
open suspend override fun add(outputId: String, bufferedLog: PureeBufferedLog)

Adds a new PureeBufferedLog to the store.

Link copied to clipboard
open suspend override fun get(outputId: String, maxCount: Int): List<PureeBufferedLog>

Retrieves the logs from the store.

Link copied to clipboard
open suspend override fun purgeLogsWithAge(outputId: String, now: Instant, age: Duration)

Deletes all the logs according the age of the log.

Link copied to clipboard
open suspend override fun remove(outputId: String, bufferedLogs: List<PureeBufferedLog>)

Deletes the logs from the store.